package com.xuan.service;
import com.xuan.dao.AccDetailsDao;
import com.xuan.model.Acc_details;
import java.util.List;
public class AccDetailsService {
    private AccDetailsDao accDetailsDao = new AccDetailsDao();

    public boolean add (Acc_details acc_details) {
        return accDetailsDao.add(acc_details);
    }

    public boolean delete (int id) {
        return accDetailsDao.delete(id);
    }

    public boolean update (Acc_details acc_details) {
        return accDetailsDao.update(acc_details);
    }

    public List<Acc_details> getAll (int size,int page) {
        return accDetailsDao.getAll(size,page);
    }

    public Acc_details get (int id) {
        return accDetailsDao.get(id);
    }

    public long getPageSize (int size) {
        return accDetailsDao.getPageSize(size);
    }
}
